#define _CRT_SECURE_NO_WARNINGS 1
#include"my_string.h"

void* my_memset(void* dest, int val, size_t n) {
	assert(dest);
	void* ret = dest;
	while (n--){
		*(char*)dest = (char)val;
		++(char*)dest;
	}
	return ret;
}